package com.ssr.master.common.Base;

import java.util.ArrayList;
import java.util.List;

/**
 * @author ZhangPeng
 * @Description //todo 封装返回数据实体类
 * @date
 * @updateBy
 * @other
 **/

public class PageBase<T> {

    //实体类集合
    private List<T> rows = new ArrayList<T>();
    //数据总条数
    private int total;
    private String errorMsg;

    public PageBase() {
        super();
    }

    public PageBase (int total,List<T> rows,String errorMsg) {
        this.total = total;
        this.rows = rows;
        this.errorMsg = errorMsg;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
}
